package com.ruoyi.airsystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.airsystem.mapper.AirRoomsMapper;
import com.ruoyi.airsystem.domain.AirRooms;
import com.ruoyi.airsystem.service.IAirRoomsService;

/**
 * 房间管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
@Service
public class AirRoomsServiceImpl implements IAirRoomsService 
{
    @Autowired
    private AirRoomsMapper airRoomsMapper;

    /**
     * 查询房间管理
     * 
     * @param roomId 房间管理主键
     * @return 房间管理
     */
    @Override
    public AirRooms selectAirRoomsByRoomId(Long roomId)
    {
        return airRoomsMapper.selectAirRoomsByRoomId(roomId);
    }

    /**
     * 查询房间管理列表
     * 
     * @param airRooms 房间管理
     * @return 房间管理
     */
    @Override
    public List<AirRooms> selectAirRoomsList(AirRooms airRooms)
    {
        return airRoomsMapper.selectAirRoomsList(airRooms);
    }

    /**
     * 新增房间管理
     * 
     * @param airRooms 房间管理
     * @return 结果
     */
    @Override
    public int insertAirRooms(AirRooms airRooms)
    {
        return airRoomsMapper.insertAirRooms(airRooms);
    }

    /**
     * 修改房间管理
     * 
     * @param airRooms 房间管理
     * @return 结果
     */
    @Override
    public int updateAirRooms(AirRooms airRooms)
    {
        return airRoomsMapper.updateAirRooms(airRooms);
    }

    /**
     * 批量删除房间管理
     * 
     * @param roomIds 需要删除的房间管理主键
     * @return 结果
     */
    @Override
    public int deleteAirRoomsByRoomIds(Long[] roomIds)
    {
        return airRoomsMapper.deleteAirRoomsByRoomIds(roomIds);
    }

    /**
     * 删除房间管理信息
     * 
     * @param roomId 房间管理主键
     * @return 结果
     */
    @Override
    public int deleteAirRoomsByRoomId(Long roomId)
    {
        return airRoomsMapper.deleteAirRoomsByRoomId(roomId);
    }
}
